import {METHOD, request} from "@/utils/request";
import {GET_BANNER,STOP_BANNER} from "@/services/api";

export async function getBanners(pageNum = 1, pageSize = 15, queryStr = ''){
    return request(GET_BANNER + `?pageNum=${pageNum}&pageSize=${pageSize}&queryStr=${queryStr}`,METHOD.GET)
}
export async function stopBanner(bannerId){
    return request(STOP_BANNER + `/${bannerId}`,METHOD.PUT)
}

export default {
    getBanners
}